package com.trainingcloud.action.auth;

import com.trainingcloud.Globals;
import com.trainingcloud.action.BaseSessionAction;
import com.trainingcloud.exception.DAOException;
import com.trainingcloud.exception.SystemException;

public class LogoutAction extends BaseSessionAction 
{
	public LogoutAction() throws SystemException 
	{
		super();
	}

	@Override
	public String callWithSession() throws DAOException, SystemException 
	{
		Globals.getTokenManager().releaseToken(currentUser.getId());
		return null;
	}

}
